<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<nav class="navbar navbar-inverse navbar-fixed-top">
		<div class="container-fluid">
			<a class="navbar-brand" href="#"> <img alt="Brand" src="images/png1.png" style="width: 200px; margin-top: -22px;">
			</a>
			<div class="collapse navbar-collapse"
				id="bs-example-navbar-collapse-1">
				<ul class="nav navbar-nav" id="js-nav-slide" style="margin-left: -50px;">
					<li><a href="first">首页 </a></li>
					
					<li class="current"><a href="sale?opt=all">二手</a></li>
					<li class=""><a href="purchase?opt=all">求购</a></li>
				</ul>
				<ul class="nav navbar-nav navbar-right login-box">
					<s:if test="#session.user==null">
					<li><a href="Login.jsp">登陆</a></li>
					<li><a href="Return">注册</a></li>
					</s:if>
					<s:else>
						<li>
                        <a class="headpic-link"  href="UsersInfo?id=<s:property value="#session.user.id"/>">
                            <img class="headpic" class="img-responsive center-block" src='<s:property value="#session.user.images"/>'/> 
                        </a>
                    </li>
                    <li>
                        <a href="Back?opt=all">退出</a>
                    </li>
					</s:else>
				</ul>
				<form class="navbar-form navbar-right search-box" action= "sale?opt=search" method="post"
					>
					<div class="form-group pull-left">
						<input name="search" type="text" id="serachWord"
							class="form-control search-field" placeholder="搜索一下...">
					</div>
					<button type="submit" class="btn btn-default pull-left search-btn">搜索</button>
				</form>
			</div>
		</div>
	</nav>
